package com.zcy.gift.client;

import com.zcy.gift.client.fallback.AuthFallBack;
import com.zcy.gift.client.fallback.AuthFallBackFactory;
import com.zcy.gift.domain.LoginUser;
import com.zcy.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>
 *
 * </p>
 *
 * @author lucker
 * @date 2024/1/24 18:40
 */
//@FeignClient(name = "gift-auth", fallbackFactory = AuthFallBackFactory.class)
@FeignClient(name = "gift-auth", fallback = AuthFallBack.class)
public interface AuthClient {

    @PutMapping("/loginUser")
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);
}
